package com.design.patterns.list.factory.absfactory.cola;

/**
 * @author Wangzhiwen
 */
public abstract class Cola {


    /**
     * cola的名字，抽象出共同的属性
     */
    private String colaName;

    /**
     * 各子类不同的实现
     */
    public abstract void make();

    public void drink(){
        System.out.println( colaName + " ... drink" );
    }

    public String getColaName() {
        return colaName;
    }

    public void setColaName(String colaName) {
        this.colaName = colaName;
    }
}
